// src/storeAddresses.js
import request from '@/utils/request';

// 门店地址分页
export function pageAddresses(params) {
  return request.get('/admin/store-addresses/page', { params });
}
// 查询某个门店的所有地址
export function listByStore(storeId) {
  return request.get(`/admin/store-addresses/list/${storeId}`);
}
// 新增地址
export function createAddress(data) {
  return request.post('/admin/store-addresses', data);
}
// 更新地址
export function updateAddress(data) {
  return request.put('/admin/store-addresses', data);
}
// 删除地址
export function deleteAddresses(ids) {
  return request.delete('/admin/store-addresses', { params: { ids } });
}
